import request from "../utils/request";

// 请求栏目列表 /category  get
export const category = params => request({
    url: "/category",
    params
})

// 添加栏目  /category  post
export const addCategory = data => request({
    url: "/category",
    method: "post",
    data
})